import request from '@/utils/request'
// 注册接口
export const register = (data) => {
  return request.post('/user/registered', data)
}

// 登录接口
export const login = data => request.post('/user/login', data)

// 收藏接口
export const collect = data => request.get('/user/favorites', data)

// 我的出租
export const mylet = data => request.get('/user/houses', data)

// 发布房源取出租
export const tolet = data => request.post('/user/houses', data)

// 城市列表
export const citylist = data => request.get('/area/city?level=1')
